package com.beanconvert.xml.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "BeanField")
@XmlAccessorType(XmlAccessType.FIELD)
public class BeanField {

	@XmlAttribute(name = "src")
	private String srcFieldName;
	
	@XmlAttribute(name = "type")
	private String srcFieldType;
	
	@XmlElement(name = "target")
	private String targFieldName;
	
	public BeanField(){
		
	}

	public String getSrcFieldName() {
		return srcFieldName;
	}

	public void setSrcFieldName(String srcFieldName) {
		this.srcFieldName = srcFieldName;
	}

	public String getTargFieldName() {
		return targFieldName;
	}

	public void setTargFieldName(String targFieldName) {
		this.targFieldName = targFieldName;
	}

	public String getSrcFieldType() {
		return srcFieldType;
	}

	public void setSrcFieldType(String srcFieldType) {
		this.srcFieldType = srcFieldType;
	}

	@Override
	public String toString() {
		return "BeanField [srcFieldName=" + srcFieldName + ", srcFieldType="
				+ srcFieldType + ", targFieldName=" + targFieldName + "]";
	}

	
	
}
